package com.totoro.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.totoro.dao.BaseHibernateDao;
import com.totoro.dao.MajorDao;
import com.totoro.domain.Major;

@Transactional
@Service
public class MajorService extends BaseService<Major, Integer>{
	
	private MajorDao majorDao;

	@Autowired
	@Override
	public void setBaseDao(BaseHibernateDao<Major, Integer> majorDao) {
		// TODO Auto-generated method stub
		this.baseDao = majorDao;
		this.majorDao = (MajorDao) majorDao;
	}

}
